# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-session-manager
pkgver=1.26.0
pkgrel=0
pkgdesc="The MATE session manager"
url="https://github.com/mate-desktop/mate-session-manager"
# s390x and riscv64 blocked by mate-desktop
arch="all !s390x !riscv64"
license="GPL-2.0-or-later"
depends="mate-common mate-desktop"
makedepends="intltool libtool dconf-dev dbus-glib-dev gtk+3.0-dev
	libsm-dev mate-desktop-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-session-manager-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
ee5bcdc91d0adc47274dc835ecd9fcdf7ae77c15ed8f0b38e705089ec83142d433afd927fa9d9c70e10f6c4068fdb1b62f0aa04c94c766b4b738a1aa9f2e0585  mate-session-manager-1.26.0.tar.xz
"
